package no.sachmuld.methodcombination.examples.reflection.scalatraitstyle;

import no.sachmuld.methodcombination.api.MethodInvocation;

/**
 *
 */
public class Coffee extends Beverage {

    public Coffee() {

        with(new BeverageTrait() {
            @Override
            public double cost(MethodInvocation<Double> methodInvocation) {
                return 1.99;
            }

            @Override
            public String toString(MethodInvocation<String> methodInvocation) {
                return "Coffee";
            }
        });
    }

}

